/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package org.easyjava.restlet;

import org.restlet.Application;
import org.restlet.Restlet;
import org.restlet.routing.Router;
import org.easyjava.app.Explorer;
import org.easyjava.app.ModelFromRescource;

/**
 *
 * @author 朱雀
 */
public class URLtoApp extends Application {

	@Override
	public Restlet createInboundRoot() {
		Router router = new Router(getContext());

//		router.attach("/explorer", Explorer.class);
		router.attach("/modelFromRescource", ModelFromRescource.class);

		JsonPackFilter jpf = new JsonPackFilter(getContext());
		jpf.setNext(router);
		return jpf;
	}

}
